x = [0
0.5
1
1.5
2
2.5
3
3.5
4
4.5
5
5.5
6
6.5
7
7.5
];

y1 = [30
36.419625
42.22625
47.488
52.27
56.6545
60.729375
64.569125
68.2605
71.9225
75.658625
79.562
83.767875
88.414875
93.679375
99.709125

];

y2 = [50
54.3771
58.7719625
63.2515125
67.829575
72.4977625
77.252975
82.0957875
87.0360125
92.0868375
97.275625
102.6399375
108.2277875
114.0179375
120.0045625
126.1459375
];

y3 = [40
47.35375
54.565
61.69
68.68375
75.565
82.3075
88.945
95.5
101.97625
108.3775
114.72625
121.02625
127.29625
133.55125
139.795
];



x11=linspace(min(x),max(x));
y11=interp1(x,y1,x11,'cubic');

x22=linspace(min(x),max(x));
y22=interp1(x,y2,x22,'cubic');

x33=linspace(min(x),max(x));
y33=interp1(x,y3,x33,'cubic');

Line1 = line(x11,y11);
Line2 = line(x22,y22);
Line3 = line(x33,y33);

set(Line1, 'LineStyle', '--','LineWidth', 1,  'Color', [132  94  194]/255)
set(Line2, 'LineStyle', '--','LineWidth', 1,  'Color', [44  115  210]/255)
set(Line3, 'LineStyle', '--','LineWidth', 1,  'Color', [0  143  122]/255)

% 坐标区调整
set(gca, 'Box', 'off', ...                                % 边框
         'TickDir', 'out', 'TickLength', [.01 .01], ...   % 刻度
         'XMinorTick', 'off', 'YMinorTick', 'off', ...    % 小刻度
         'XColor', [.1 .1 .1],  'YColor', [.1 .1 .1],...  % 坐标轴颜色
         'XTick', 0:1:8,  'YTick', 0:20:200,...     % 刻度位置、间隔
         'Xlim' ,[0 8],'Ylim' ,[0 200], ...          % 坐标轴范围
         'Xticklabel',{[0:1:8]},...                   % X坐标轴刻度标签
         'Yticklabel',{[0:20:200]})                     % Y坐标轴刻度标签
% X、Y轴标签及Legend
hXLabel = xlabel('Time (s)');
hYLabel = ylabel('longitudinal position (m)');
hLegend = legend([Line1,Line2,Line3], ...
                 'FV', 'SV','LV', ...
                 'Location', 'northeast');
% 刻度标签字体和字号
set(gca, 'FontName', 'Times', 'FontSize', 9)
% X、Y轴标签及Legend的字体字号 
set([hXLabel, hYLabel,hLegend], 'FontName',  'Helvetica')
set([hXLabel, hYLabel,hLegend], 'FontSize', 10)
% 背景颜色
set(gca,'Color',[1 1 1])